﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css/" + WooCoo.Web.MVC.UserContext.Theme)    
    <link href="~/Scripts/showloading/showLoading.css" rel="Stylesheet" />
</head>
<body class="page-header-fixed">
    <div class="header navbar navbar-fixed-top">
        @Html.Partial("_Header")
    </div>
    <div class="clearfix"></div>
    <div class="page-container">
        <!--BEGIN SIDEBAR-->
        <div class="page-sidebar-wrapper">
            @Html.Partial("_Menu")
        </div>
        <div class="page-content-wrapper">
            <div class="page-content content_item" content_id="0">
                @*<iframe src="@AppConfig.MainModule.FirstPageUrl">
                    </iframe>*@
                @*@Html.Action("Index", "Home", new { area = "Support" });*@
                @RenderBody()
            </div>
        </div>
    </div>
    <div class="footer">
        <hr />
        <footer>
            <p>&copy; @DateTime.Now.Year - WooCoo应用开发平台</p>
        </footer>
    </div>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/modernizr")
    <script src="~/Scripts/app.js"></script>
    <script src="~/Scripts/utils.js"></script>
    <script type="text/javascript" src="~/Scripts/easyui/easyloader.js"></script>
    @RenderSection("scripts", required: false)
    <!-- END PAGE LEVEL SCRIPTS -->
    <script type="text/javascript">
        jQuery(document).ready(function () {
            App.init(); // init layout
            //easyloader.locale = "zh_CN";
            easyloader.theme = "bootstrap";            
            using("messager");
            $('.logout').click(logout);
        });
        function logout(){
            $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function (r) {
                if (r) location.href = '/Login/Logout';
            });
        };
    </script>
</body>
</html>
